<?php defined("MAIN_DIR") or die("No direct access");

switch ($route->getPath(3)) {
	
	case "list":	require_once ADMIN."photos".DS."list.php"; break;
	case "upload": 	require_once ADMIN."photos".DS."upload.php"; break;
	case "trash":	require_once ADMIN."photos".DS."trash.php"; break;
	case "rename":	require_once ADMIN."photos".DS."rename.php"; break;
	case "on":	    require_once ADMIN."photos".DS."on.php"; break;
	case "off":	    require_once ADMIN."photos".DS."off.php"; break;

	default: to("/admin/photos/list");
}

?>